package main
import "fmt"

func main(){
  var arr = [5]int{0,1,2,3,4}
  fmt.Printf("arr's sum is: %d\n", Sum(arr[:]))
}
func Sum(a []int) (s int){
  for _, val := range a{
	s += val
  }
  return
}
